package main

import (
	"fmt"
	"os/exec"
	"strings"
)

func main() {
	findCmd := exec.Command("find", "/", "-name", "ipconfig")
	output, err := findCmd.Output()
	if err != nil {
		fmt.Printf("查找ixsmi命令失败: %v", err)
	} else {
		paths := strings.Split(string(output), "\n")
		for _, path := range paths {
			if path != "" {
				fmt.Printf("找到ixsmi命令: %s", path)
			}
		}
	}
}
